function checkMsg(options, cb) {
    let alertBox = document.querySelector('#alert-box')
    let alert = alertBox.querySelector('.alert')

    alertBox.classList.add('fixed-top');
    alert.classList.remove('d-none')

    alertBox.querySelector('.alert-body').innerHTML = options.msg;
    let theme = `alert-${options.type}`;
    alert.classList.add(theme);

    setTimeout(() => {
        alert.classList.add('d-none')
        if (typeof cb == "function") {
            cb();
        }
        alert.classList.remove(theme);
    }, 2000)
}

